package com.gd.iot.energy.service.systemadmin;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gd.iot.energy.po.systemadmin.HouseholdPO;
import com.gd.iot.energy.pojo.common.vo.PageVO;
import com.gd.iot.energy.pojo.systemadmin.dto.HouseholdSaveDTO;
import com.gd.iot.energy.pojo.systemadmin.vo.EnumVO;
import com.gd.iot.energy.pojo.systemadmin.vo.HouseholdPageVO;
import com.gd.iot.energy.pojo.systemadmin.vo.HouseholdVO;

import java.util.List;
import java.util.Map;

public interface HouseholdService extends IService<HouseholdPO> {
    /**
     * 获取列表
     * @param areaOrg
     * @param householdName
     * @return
     */
    List<HouseholdVO> getHouseHoldVOs(Long areaOrg, String householdName);

    /**
     * 获取分页数据
     * @param areaOrg
     * @param filterType
     * @param pageSize
     * @param pageNo
     * @param orderColumn
     * @param orderType
     * @return
     */
    PageVO<HouseholdPageVO> getHouseHoldPageVOs(Long areaOrg, Integer filterType, String filterValue,
                                                Integer pageSize, Integer pageNo, String orderColumn, String orderType);

    /**
     * 新增表计
     * @param houseHoldSaveDTO
     * @return
     */
    Long add(HouseholdSaveDTO houseHoldSaveDTO);

    /**
     * 更新表计
     * @param houseHoldSaveDTO
     * @return
     */
    boolean update(HouseholdSaveDTO houseHoldSaveDTO);

    /**
     * 删除表计
     * @param ids
     * @return
     */
    boolean delete(List<Integer> ids);

    /**
     * 根据id获取表计
     * @param id
     * @return
     */
    HouseholdSaveDTO getHouseHold(Integer id);

    /**
     * 获取通信协议
     * @return
     */
    Map<String, List<EnumVO>> getEnums();
}
